package com.eugenezadyra.rsstotwitter.dao.bean;

import com.eugenezadyra.rsstotwitter.dao.FeedSubscriptionDao;
import com.eugenezadyra.rsstotwitter.model.Feed;

import javax.ejb.Local;
import javax.ejb.Singleton;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * @author eugene zadyra
 */
@Singleton
@Local(FeedSubscriptionDao.class)
public class FeedSubscriptionDaoBean implements FeedSubscriptionDao {
	@PersistenceContext(unitName = "HibernatePU")
	public EntityManager em;

	public FeedSubscriptionDaoBean() {
		Feed feed = new Feed();
		em.persist(feed);
	}
}
